package com.feng.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * (ChatRoom)表实体类
 *
 * @author feng
 * @since 2025-06-09 22:14:31
 */
@Data
public class ChatRoom{
    //主键
    private Long id;
    //内容
    private String content;
    //发送人id
    private String fromId;
    //发送人
    private String fromUser;
    //发送人头像
    private String fromAvatar;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
    //发送类型
    private String type;
    //接收人id
    private String toId;
    //接收人
    private String toUser;
    //接收人头像
    private String toAvatar;
    //是否已读
    private Integer isRead;
}

